﻿<%@ Page Title="Share Photo" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="SharePhoto.aspx.vb" Inherits="SharePhoto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
    <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center">
 
        <br />
        <p class="leadingStatement">
                On this page, you can share your photo and tell us about the photo! </p>
        <br />
        <p>
           
            <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
                AutoGenerateColumns="False" CssClass="gridview"  
                HorizontalAlign="Center" >
                <Columns>
                    <asp:BoundField DataField="MemberName" HeaderText="MemberName" 
                        SortExpression="MemberName" />
                    <asp:BoundField DataField="AboutPhoto" HeaderText="AboutPhoto" 
                        SortExpression="AboutPhoto" />
                    <asp:ImageField DataImageUrlField="Photo" HeaderText="Photo" 
                        SortExpression="Photo">
                    </asp:ImageField>
                </Columns>
            </asp:GridView>
        <br />
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:SingleMomMemberConnectionString %>" 
                ProviderName="<%$ ConnectionStrings:SingleMomMemberConnectionString.ProviderName %>" 
                SelectCommand="SELECT [MemberName], [AboutPhoto], [Photo] FROM [SharePhoto]">
            </asp:SqlDataSource>
        <br />
        </p>
        <p class="leadingStatement">
                Use this form to share your photo and add photo comment! </p>
                <p>
        Your Name: <asp:TextBox ID="tb_MemberName" runat="server" Width="176px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="You must enter your Name" ControlToValidate="tb_MemberName"></asp:RequiredFieldValidator>
    <br/>
        <br/>   Describe (Tell us About the Photo):<br />
    <asp:TextBox ID="tb_AboutPhoto" runat="server" 
        Height="141px" Width="329px" TextMode="MultiLine"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Please tell us about the photo" ControlToValidate="tb_AboutPhoto"></asp:RequiredFieldValidator>
        
    <br/>
    <br/>
    <br/>
    <br/>
        Upload Photo: 
        <asp:FileUpload ID="f_Photo"  runat="server" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="You must upload a photo" ControlToValidate="f_Photo"></asp:RequiredFieldValidator>
     <br/>
    <br/>
         <asp:ImageButton ID="Button1" runat="server" ImageUrl="~/Images/share_photo_button.jpg" />
    </p>
        <br />
        <p>
    </p>
    </asp:Panel>
</asp:Content>

